modified magic method documentation