OMFG. It's working. After refactoring!!!!!

it's 15 o'clock at the night..i reeeeaally want to sleep, so my code can
be a bit hiigh