made some changes to variables value..earlier had used some random values