working through the function. got paste now