trying hard to fix the blank page bug