trying to write service