why doesn't this work. someone…… write a….. algorithm