Replaced if