new approach to avoid temporary inode