fixed success/failure print