added load function but don't know if it's correct or not