started documenting the functions