refactoring not to use s:get()

because get() searches g: each times