added default function to complement default controller