refactored with new formattigclasses