made a if more beautiful