missed handling err which lead to a panic