removed unnecessary cast