added square cutting boundary