less code on controllers