finished function
added function, needs implementation