modifying api to include real time