working with math object