added proper type cast to const values