rearranging the structure of realtime