modificacion script TK (reverted from commit 5fde9e46ee8762c215af35758059e762f7ea21be)