function fix cuz it was mess

fuck you fools