pack inputs better