changed else if to else