checking in RPCA implementation