modified code in post