dont use getType() - it require psi