rect problem solved