threadign works in its initial stages