got rid of threading