removed unnecessary uint cast