working version of initial stripped version