changed string to constant
minor refactoring