fixed tieing method by having it run after collapse