def create one line controller