small changes to pass unit test