attempt 4 to fix bug