factor table related functions