removed unnecesary typecasting