getting it working without warnings