adjusted shift to dictionary