regist keyword logic optimized