using scratch space