fixed the p_name problem by changing it to name