Simplier way to rest input data