added monitorFunction