raise error when const exists