removed unused controller function