change script to pointer