tried to show the cam input in a loop