added type checks to assign, name, tuple, and list