adding before script