add {} to these if else if else to make it clear