added correct params + error handling