append p instead of modifying existing p