working with multiple threads now