splitting up the code a bit more so that functions are smaller