trying a second more concise version. not working yet