add mask tostring method