completed the stubs of the functions