missed handling err which led to a panic