function for fixing busted assignment