removed unwanted typecasting