Tried to pass Parser to rect()