use objects to perform fits