used Constants.h to replace constants