cleaned up pipeline register generation