used record to store the default settings and made some changes to function according to that and also changed some function names