created variables and else if outline