pubp error and assignments checking error