remove unnecessary type hack