implemented load method