prelimary code for unary rolls