before controllering