>i do be doing this in the function