invert but i coded it all myself | ScratchStats