remove unneeded language and update if statement