fixing issue with how data is requested