removed unused defined function