New implementation of creating gluon distributions