some changes added in this script