update on if else loops