removed code converted to test