need to debug else branch