added a method to reduce dependency