add enough error msg and runs smoothly