changes put function to have data inside params