smoothing out a few rough edges