removed dependency on which gem