even simpler and now working