added basic support for cosnt value_type