lab6 update

cross platform fix