solved val problem