better use of const