solved problem 30. Should check if there's a better way tho this is ok.