trying to figure out how to return primitives from functions