adding return statements to loaders