implemented full scan