initial version of addfrac