using route object instead