tarred up a cleaned up math