moved asert from try/catch