add stub codes