work in progress on bug