assoc definition modified, cycle function completed and nil changed to null