first attempt at defining the kreg parameter