add p method call for debug