fixing previously noted bug