changed script to debug it