removed if else statement
update