working out p width