create separate method