refactor to uses places app