finalized dirty hack