optimized profile to only use 1 querry instead of 2