cast and prim mostly working