moved if to else if