further work on simplifyig