trying to fix the blocking problem