added interval error handling to amplitude