document some magic methods