remove unneeded if statement