slightly better function recognition