adding const definition file and revmong a bug