unnecessary type cast removed