remove ambigious square brackets