try to do multi tasking with unsafe pointers
implemented unsafe multi tasking