adding stubs/minor code to help with the implementation