accepted solution to fctrl