minor modification on 1-dim