refactor sparkHome to val

clean code