remove unnecessary type pamameters