changed second get() to scan()