added type for script