fixing check to no panic without panic