added comp functionality --KW