min square + autosubscribtion