remove more unnecessary layers