made thread final
fixed thread stuff