removed unused func