doing it the wrong way, returns directly in code