changed some little stuff to make it build