remove console messages and erroneous inputs