putting returns in one place to jump to using goto out