basic operations working in 1D