changed post notice if statement to get rid of unnecessary vairable name