remove ] from output