fixing yesterdays bad code