added constants, fixed bug, playing with pointer