to obtain any attr in pts
even more simple way of calculate the positions of x and y