removed unnecessary casting to interface