added 1-D constructor