deleted empty prims function