Why are the conditions i have setup not working