implemented get method