moved method in the right place

Signed-off-by: Mauro Scomparin <scompo@gmail.com>