refactored fillup in php process