empty block error - fixed