implemented the use method