utility function fin by id