add support for assignment

could handle numbers like "-1"