ratios + figured out nullpointerexception