This is the worst code i have ever written