refactor code
minor change