modified redeme of js