workaround assignment with null