replace define with const