refactored #tie