added TODO and a cast