added "pad" function and "delete_cookie"