working functions

not created the comments yet