clean up scan returns