added select for dimension
had to change the way all updates are called