variabel ref_p is now assigned!