fixed up rileys thing