more tidying up
changing function design
changing design
function changes
completed function stuff
completed function stuff
nothing importnat