working on psclass guard