const and fixed really dumb mistake