fixed if else groggy clarity