updated scan class