handle assignments (previously only supported declarations)