making it work either way