removed unused portion in testing