now determining type asap (in controller)