added create scan method