writing a bunch of to be written functions into generate_prims