assign method added, includes test