Removal of unnecessary vals