position in getState is an integer