Working on rect