Before changing code -> *code
functions work without refs