methods created and stubs used for tests