not finished yet
getting stuck
1
refactored the realtime update