Change mark point reference from function