remove unnecessary type checking