add p on adress
found the bug on code