rewrote settings finding fn