my modified dile for assignment