use const wherever appropriate