move some stuff to initRect function, hareee