removed const where it shouldn't be const