smoothing out the rough edges