remove unnecessary type paramters