updated levels state