properly generate child key