const and logic