eauation function is added