fixed problem with const