fixes

make function that don't modify data const