implementing mock methods