For some reason the code wasnt working before, now it is