modified p_signup