changed getmodID function to return a list rather than have 2 functions