end no longer needed with if statements