Category by id function
happening template function