added usage check to program