making detection more accurate