clean up temporary data fix from other branch

function in branch was not correct