removed ununsed functions