code cleanup
simplified assign_default_weights