limits in return_data function - need to test all posibilities