fixes shitty code