use const argument where appropriate