move struct's prims in separate file