update factory.php

@jpalala