add realm attribute