changed Rectangle to Square