category eliminated, added input parameter