removed x and y no more used for rect