check if functions run well