Removing unncesary assignings