changed return value of assign