removed waiting for camera function because it did not work