update for memory consideration