commented out

commented out if and else statement
function

created 2 fuction of var