removed unnecessary type cast