better idea of needed for realtime - this almost works

apart from non int numbers