shorten variable definition in getInitialPosition