add assign method