made simplify a void function