removed unnecessary type casting