fixing a few issues with pseudocomps and boundary vars