moved 'against' function body out of return statement