math helper fixed, table functions added