moved prime unctions to own file