add throw exception code
add not found exception