updated afinventiry query