added features for verions 4