changed level formula