update constants and logic class