implemented methods to be tested