edit code to get rid of left bracket