working without multiple blocks