index scans properly

Signed-off-by: zeljko <zeljko@zwr.fi>