intruduced a boolean called wrap