remoove new line and unnessesary try/except statement