made it into gem file that works