moved into a function, next step is probably turning