compleate function for prepare data for request