remove wrong inline if checking