Adding one diminsional scan