removed superfluous typecasting