Alter dictionary return  type