added pad and id functions