fixed avanishs mistakes