still doesnt make sense why you are using threads here