oops, working sincos reg fix