minor modifications and program added