added getData function to settings