pad creation functionality