assign method