change models logic