how to deal with the constants used in interface