really bad way of doing this =[