Deleted if and removed variable